x86/cpufreq: fix turbo mode detection
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 7 May 2010 08:46:50 +0000 (09:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 7 May 2010 08:46:50 +0000 (09:46 +0100)
commit40af606c02e8caaa824213a7eb2232c6b166dc88
treeba4af4f8b075b6362101bb7185f2b8b5c5f269fa
parentc4826676c4550e36296f34dc48228cf91af5a86d
x86/cpufreq: fix turbo mode detection

{acpi,powernow}_cpufreq_cpu_init() generally don't run on the CPU the
policy they deal with is related to, hence using cpuid() directly
works only as long as all CPUs in the system are identical (which
admittedly is commonly the case).

Further add a per-policy flag indicating the availability of
APERF/MPERF MSRs, so that globally setting the .getavg accessor won't
be a problem on heterogeneous configurations.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/acpi/cpufreq/cpufreq.c
xen/arch/x86/acpi/cpufreq/powernow.c
xen/include/acpi/cpufreq/cpufreq.h